Change the default output location to target/debug
authorAlex Crichton <alex@alexcrichton.com>
Tue, 3 Mar 2015 21:46:02 +0000 (13:46 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 6 Mar 2015 18:53:43 +0000 (10:53 -0800)
commit14ff482dda0ba96bb64b3bc21df16e89ff21af9a
treea6f2ac699ca1fb6bb43d1bf64a0273ccf6054609
parent442b7e20118484604d877a9f7f68bda8def074da
Change the default output location to target/debug

This commit now funnels all output of Cargo by default to be in `target/debug`
instead of the bare `target` directory. This change is targeted at raising
awareness of whether a debug build is being used (as opposed to a release
build). It is also aimed at remedying a common scenario where `cargo build` is
followed by `cargo build --release` and then the debug binaries are run by
accident.

This does not yet explore the option of providing symlinks to the most recent
build, hence this commit is a breaking change due to the restructuring of the
layout of the output.

Note that this commit does **not** change the output location for documentation.
All output of `cargo doc` continues to be funneled into the `target/doc`
directory.

Closes #785
14 files changed:
src/cargo/core/manifest.rs
src/cargo/ops/cargo_run.rs
src/cargo/ops/cargo_rustc/layout.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/support/mod.rs
tests/test_cargo_build_lib.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_custom_build.rs
tests/test_cargo_compile_plugins.rs
tests/test_cargo_cross_compile.rs
tests/test_cargo_new.rs
tests/test_cargo_profiles.rs
tests/test_cargo_run.rs
tests/test_cargo_test.rs